//
//  TravelTactic_AreaModel.m
//  Test
//
//  Created by Rain on 15/11/16.
//  Copyright © 2015年 Rain. All rights reserved.
//

#import "TravelTactic_AreaModel.h"
#import "TravelTactic_DestinationModel.h"
#import "TravelTactic_IntroModel.h"

@implementation TravelTactic_AreaModel


- (void)setValue:(id)value forKey:(NSString *)key {
    
//    if ([key isEqualToString:@"destination_contents"]) {
//        NSMutableArray *arr_Destination = [NSMutableArray array];
//        arr_Destination = value;
//        for (NSDictionary *tempDic in arr_Destination) {
//            TravelTactic_DestinationModel *model = [[TravelTactic_DestinationModel alloc] init];
//            [model setValuesForKeysWithDictionary:tempDic];
//            [self.destinationArr addObject:model];
//            [model release];
//        }
//        [arr_Destination release];
//    } else if ([key isEqualToString:@"intro"]) {
//        
//        NSMutableArray *arr_Intro = [NSMutableArray array];
//        arr_Intro = [value objectForKey:@"notes"];
//        for (NSDictionary *tempDic in arr_Intro) {
//            TravelTactic_IntroModel *model = [[TravelTactic_IntroModel alloc] init];
//            [model setValuesForKeysWithDictionary:tempDic];
//            [self.introArr addObject:model];
//            [model release];
//        }
//        [arr_Intro release];
//    } else {
//        [super setValue:value forKey:key];
//    }
    
    if ([key isEqualToString:@"id"]) {
        self.ID = value;
    } else {
        [super setValue:value forKey:key];
    }
}


@end
